import  http  from "../utils/request"

export function login(val){
	return http({
		 url: '/user-module/user/login',
		    method: 'POST',
		    data: val
	})	
}

export function enroll(val){
	return http({
		 url: '/user-module/user/login',
		    method: 'GET',
		    params: val
	})	
}

export function update(val){
	return http({
		 url: '/user-module/user/update',
		    method: 'PUT',
		    data: val
	})	
}

export function updatePassword(val){
	return http({
		 url: '/user-module/user/updatePassword',
		    method: 'PUT',
		    data: val
	})	
}

export function getEphemeralData(val){
	    console.log('getEphemeralData 接收的 val：', val);
	    console.log('val 的类型：', typeof val);
	    console.log('val 是否为对象：', val instanceof Object);
	    
    return http({
         url: '/user-module/user/getEphemeralData',
            method: 'GET',
            params: val
    })    
}

export function getPositionTypeAndFirst(){
	return http({
		 url: '/user-module/user/getPositionTypeAndFirst',
		    method: 'GET',
	})	
}

export function getJobsByTypeId(val){
	return http({
		 url: '/user-module/user/getJobsByTypeId',
		    method: 'GET',
			params: val
	})	
}

export function getCountiesByProvinceId(val){
	return http({
		 url: '/user-module/user/getCountiesByProvinceId',
		    method: 'GET',
			params: val
	})	
}

export function submitCareerExpectInfo(val){
	return http({
		 url: '/user-module/user/submitCareerExpectInfo',
		    method: 'PUT',
			data: val
	})	
}

export function sendEmailForVer(val){
	return http({
		 url: '/user-module/user/sendEmailForVer',
		    method: 'GET',
			params: val
	})	
}

export function submitUserInfo(val){
	return http({
		 url: '/user-module/user/submitUserInfo',
		    method: 'POST',
			data: val
	})	
}

export function getCareerExpectByUserId(val){
	return http({
		 url: '/user-module/user/getCareerExpectByUserId',
		    method: 'GET',
			params: val
	})	
}

export function getRegion(val){
	return http({
		 url: '/user-module/user/getRegion',
		    method: 'GET',
			params: val
	})	
}

export function recommendedRecruit(val,pageNum,pageSize){
	return http({
		 url: `/user-module/user/recommendedRecruit?pageNum=${pageNum}&pageSize=${pageSize}`,
		    method: 'POST',
			data: val
	})
}

export function deleteCareerExpect(val){
	return http({
		 url: `/user-module/user/deleteCareerExpect/${val}`,
		    method: 'DELETE',
	})
}

export function addCareerExpect(val){
	return http({
		 url: '/user-module/user/addCareerExpect',
		    method: 'PUT',
			data: val
	})	
}

export function updateCareerExpectationRegion(val){
	return http({
		 url: '/user-module/user/updateCareerExpectationRegion',
		    method: 'POST',
			data: val
	})	
}

export function updateCareerExpectationRegionIsNull(val){
	return http({
		 url: '/user-module/user/updateCareerExpectationRegionIsNull',
		    method: 'POST',
			data: val
	})	
}

export function getRecruitAndElse(val){
	return http({
		 url: '/user-module/user/getRecruitAndElse',
		    method: 'GET',
			params: val
	})	
}

export function getCompanyInfoByCompanyId(val){
	return http({
		 url: '/user-module/user/getCompanyInfoByCompanyId',
		    method: 'GET',
			params: val
	})	
}

export function search(val){
	return http({
		 url: '/user-module/user/search',
		    method: 'GET',
			params: val
	})	
}

export function getInterview(val){
	return http({
		 url: '/user-module/user/getInterview',
		    method: 'GET',
			params: val
	})	
}

export function getInterviewDeta(val){
	return http({
		 url: '/user-module/user/getInterviewDeta',
		    method: 'GET',
			params: val
	})	
}

export function getOrderByUserId(val){
	return http({
		 url: '/user-module/user/getOrderByUserId',
		    method: 'GET',
			params: val
	})	
}

export function getOrderInfo(val){
	return http({
		 url: '/user-module/user/getOrderInfo',
		    method: 'GET',
			params: val
	})	
}

export function getJuLi(val){
	return http({
		 url: '/user-module/user/getJuLi',
		    method: 'GET',
			params: val
	})	
}

export function collectRecruit(val){
	return http({
		 url: '/user-module/user/collectRecruit',
		    method: 'GET',
			params: val
	})	
}